import {request} from "../../request";

export function getSkucategoryById(id){
    return request({
        url:`/lswms/skucategory/${id}`,
        method:'get'
    })
}


export function getSkucategoryPage(data){
    return request({
        url:'/lswms/skucategory/page',
        method:'put',
        data:data
    })
}

export function getSkucategoryByType(type){
    return request({
        url:'/lswms/skucategory/list',
        method:'get',
        data:type
    })
}



export function putSkucategory(data){
    return request({
        url:'/lswms/skucategory',
        method:'put',
        data:data
    })
}
export function postSkucategory(data){
    return request({
        url:'/lswms/skucategory',
        method:'post',
        data:data
    })
}

export function deleteSkucategory(data){
    return request({
        url:`/lswms/skucategory`,
        method:'delete',
        data:data
    })
}
export function exportSkucategory(data){
    return request({
        url:`/lswms/skucategory/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
